package com.lhj.xxsc.cart.feign;

import com.xxsc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 罗惠江
 * @version 1.0
 * @email 1511619294@qq.com
 * @date 2020/12/30 17:38
 */
@FeignClient("xxsc-product")
public interface ProductFeignService {

	/**
	 * 远程查询商品信息
	 *
	 * @param skuId
	 * @return
	 */
	@RequestMapping("/product/skuinfo/info/{skuId}")
	R productInfo(@PathVariable("skuId") Long skuId);

	@GetMapping("/product/skusaleattrvalue/stringlist/{skuId}")
	List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

	@RequestMapping("/product/skuinfo/getProductPrices")
	R getProductPrices(@RequestBody List<Long> skuIds);
}
